<template>
	<view class="content">
		<view class="comment mt20">
			<view class="goods flex">
				<view class="goods-img">
					<image src="https://iknow-pic.cdn.bcebos.com/0eb30f2442a7d933ed8c1316af4bd11373f001aa?x-bce-process=image/resize,m_lfit,w_600,h_800,limit_1"
					 mode="scaleToFill" class="goods-img"></image>
				</view>
				<view class="goods-tit fs28 c3 lH42">
					贝因美爱加幼儿配方牛奶粉3段800g*6罐
					1-3岁适用
				</view>
			</view>
			<view class="inputA">
				<u-input type="textarea" v-model="inputArea" height="100" :auto-height="false" placeholder="给出你的评价吧~" />
			</view>
			<view class="wrap">
				<u-upload :action="actionOss" :form-data="dataOss" :file-list="fileList" :custom-btn="true">
					<view slot="addBtn" class="slot-btn" hover-class="slot-btn__hover" hover-stay-time="150">
						<u-icon name="camera" size="60" color="#999999"></u-icon>
						<view class="fs22 c9 slot-tit">添加图片</view>
					</view>
				</u-upload>
			</view>
		</view>
		<view class="comment mt20">
			<u-form :model="form" ref="uForm" label-width="150" :border-bottom="false">
				<u-form-item label="整体评价">
					<u-rate :count="5" v-model="form.allComment" active-color="#FCC019" size="44"></u-rate>
				</u-form-item>
				<u-form-item label="沟通能力">
					<u-rate :count="5" v-model="form.linkUp" active-color="#FCC019" size="44"></u-rate>
				</u-form-item>
				<u-form-item label="响应速度">
					<u-rate :count="5" v-model="form.answer" active-color="#FCC019" size="44"></u-rate>
				</u-form-item>
				<u-form-item label="专业能力">
					<u-rate :count="5" v-model="form.major" active-color="#FCC019" size="44"></u-rate>
				</u-form-item>
			</u-form>
		</view>
		<view class="bot-btn">
			<u-button :custom-style="btnPlus" hair-line="false" shape="circle">提交</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				inputArea: "",
				actionOss: "#",
				dataOss: "",
				fileList: [],
				form: {
					allComment: 0
				},
				btnPlus: {
					width: "690rpx",
					height: "80rpx",
					bordeRadius: "40rpx",
					background: " #F74F6B",
					fontSize: "30rpx",
					color: "#FFFFFF"
				}
			}
		}
	}
</script>

<style scoped>
	.content {
		padding: 0 20rpx 148rpx;
	}

	.comment {
		padding: 20rpx;
		background: #FFFFFF;
		border-radius: 12rpx;
	}

	.goods {
		padding: 0 16rpx 32rpx 0;
		align-items: flex-start;
		border-bottom: 1rpx solid #F0F0F0;
	}

	.goods-img {
		width: 128rpx;
		height: 128rpx;
		border-radius: 6rpx;
		overflow: hidden;
	}

	.goods-tit {
		width: 504rpx;
	}

	.inputA {
		padding: 30rpx 0 0;
	}

	.slot-btn {
		width: 200rpx;
		height: 200rpx;
		padding: 50rpx 0;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: wrap;
		background: rgb(244, 245, 246);
		border-radius: 10rpx;
	}

	.slot-btn__hover {
		background-color: rgb(235, 236, 238);
	}

	.slot-tit {
		width: 200rpx;
		text-align: center;
	}

	.bot-btn {
		background: #f7f9fa;
		position: fixed;
		bottom: 0;
		left: 0;
		padding: 24rpx 30rpx;
	}
</style>
